﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Navigation;
using System.Windows.Shapes;
using MMK.Paket_Tracker.Runtime.Commands;
using MMK.Paket_Tracker.GUI.ViewModels;
using MMK.Paket_Tracker.Runtime.Interfaces;
using MMK.Paket_Tracker.Runtime.Helper;
using System.IO;

namespace MMK.Paket_Tracker.GUI.Views
{
    /// <summary>
    /// Interaction logic for StartWindow.xaml
    /// </summary>
    public partial class StartWindow : UserControl, INamedUserControl
    {
        /// <summary>
        /// Initializes a new instance of the <see cref="StartWindow"/> class.
        /// </summary>
        public StartWindow()
        {
            InitializeComponent();
            viewModel = new StartWindowViewModel(this);
            //if(String.IsNullOrEmpty(BusinessLogic.BusinessLogic.LocationID))
            //{
            //    BusinessLogic.BusinessLogic.LocationID = Setup.ReadNode(Directory.GetCurrentDirectory() + "\\Paket_Tracker_Customer_Terminal.config", "Terminal").Attributes["Location"].Value;
            //}
        }

        private StartWindowViewModel viewModel;

        /// <summary>
        /// Gets the name of the view.
        /// </summary>
        /// <value>The name of the view.</value>
        public string ViewName
        {
            get { return "Willkommen bei uns!"; }
        }

        /// <summary>
        /// Sets the error info.
        /// </summary>
        /// <value>
        /// The error info.
        /// </value>
        public Dictionary<String, String> ErrorInfo
        {
            set { ; }
        }

    }
}
